import api from '../api'

export default {
  requireLoveCode: async function (params) {
    let { getDonateProductById, getDonateCashById, getProductInById, getProductOutById, getUseProductById, getBuyProductById, getShippingProductById } = api
    try {
      let res = await Promise.all([getDonateProductById(params), getDonateCashById(params), getProductInById(params), getProductOutById(params), getUseProductById(params), getBuyProductById(params), getShippingProductById(params)])
      return res
    } catch (error) {
      console.log(error)
    }
  }
}